﻿<Serializable()> _
Public Class Eaccion

#Region "           Atributos                       "
    Private _idAccion As Int32
    Private _descAccion As String
    Private _estado As String
    Private _desEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idAccion() As Integer
        Get
            Return _idAccion
        End Get
        Set(ByVal value As Integer)
            _idAccion = value
        End Set
    End Property
    Public Property descAccion() As String
        Get
            Return _descAccion
        End Get
        Set(ByVal value As String)
            _descAccion = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property desEstado() As String
        Get
            Return _desEstado
        End Get
        Set(ByVal value As String)
            _desEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idAccion As Int32, ByVal descAccion As String)
        Me.idAccion = idAccion
        Me.descAccion = descAccion
    End Sub
    Public Sub New(ByVal idAccion As Int32, ByVal descAccion As String, _
                   ByVal estado As String, ByVal idUsuario As Integer)
        Me.idAccion = idAccion
        Me.descAccion = descAccion
        Me.estado = estado
        Me.desEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
        Me.idUsuario = idUsuario
    End Sub
#End Region

End Class
